home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libg++ / src / bool.h < prev    next >
C/C++ Source or Header  |  1994-05-13  |  450b  |  25 lines

  1. // Defining TRUE and FALSE is usually a Bad Idea,
  2. // because you will probably be inconsistent with anyone
  3. // else who had the same clever idea.
  4. // Therefore:  DON'T USE THIS FILE.
  5.  
  6. #ifndef _bool_h
  7. #define _bool_h 1
  8.  
  9. #include   <_G_config.h>
  10.  
  11. #if _G_HAVE_BOOL
  12. #undef TRUE
  13. #undef FALSE
  14. #define TRUE true
  15. #define FALSE false
  16. #else
  17. #undef FALSE
  18. #undef TRUE
  19. #undef true
  20. #undef false
  21. enum bool { FALSE = 0, false = 0, TRUE = 1, true = 1 };
  22. #endif
  23.  
  24. #endif
  25.